package com.ethink.warehouse.api.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 库存采购批次表 更新请求对象
 *
 * @author default
 * @date 2022-12-16
 */
@Data
public class MatePurchaseCodeUpdateRequest {

    @Schema(description ="主键")
    private Long id;

    @Schema(description ="成本单价")
    private BigDecimal costPrice;

    @Schema(description ="生产批次")
    private String produceCode;

    @Schema(description ="原产国")
    private String countryOfOrigin;

    @Schema(description ="商品生产日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date productDate;

    @Schema(description ="商品过期日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date expireDate;

}
